﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Threading;
using BehaviorModel.Block;
using QSDesigner.Windows;

namespace QSDesigner
{
    class AppMonitor
    {
        public IBlock SelectedBlock { get; set; }

        public bool IsWholeSystemStatisticsShowing { get; set; }

        public DispatcherTimer DispatcherTimer { get; set; }

        public int LastItemsCount { get; set; }

        public static List<Window> GraphicsWindows = new List<Window>();

        public readonly ResourceDictionary BlockStatisticDictionary = new ResourceDictionary
        {
            Source =
                new Uri(
                "/QSDesigner;component/Resources/Properties/Statistics' Properties/BlockStatisticProperties.xaml",
                UriKind.RelativeOrAbsolute)
        };

        public readonly ResourceDictionary SystemStatisticDictionary = new ResourceDictionary
        {
            Source =
                new Uri(
                "/QSDesigner;component/Resources/Properties/Statistics' Properties/SystemStatisticProperties.xaml",
                UriKind.RelativeOrAbsolute)
        };

        public AppMonitor()
        {
            DispatcherTimer = new DispatcherTimer { Interval = TimeSpan.FromMilliseconds(20) };
        }
    }
}
